#ifndef SERVICE_H
#define SERVICE_H
#include "RequestHeader.h"
#include "mysql.h"
/* login */
int userLoginService(int net_fd, RequestHeader *header, MYSQL *conn);

/* register */
int userRegisterService(int net_fd, RequestHeader *header, MYSQL *conn);


/* getfile */
int userDownloadFileService(int net_fd, RequestHeader *header, MYSQL *conn);

/* putfile */
int userUploadFileService(int net_fd,RequestHeader *header, MYSQL *conn);


/* cd */
void userChangeDirectoryService();

/* mkdir */
void userMakeDirectoryService();


/* ls */
void userListDirectoryContentsService();


/* pwd */
void userPrintWorkingDirectoryService();


/* rm */
int userDropFileOrDirectoryService(int net_fd, RequestHeader *header, MYSQL *conn);



#endif // !SERVICE_H




